﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Xml;
using TestProject1.EAIServiceReference;

namespace TestProject1
{
    [TestClass]
    public class UnitTest1
    {
        [TestMethod]
        public void AURACheckRuleTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            //xmldoc.LoadXml("<AURATX><AuraControl><UniqueID>10222222221120121108192128_U</UniqueID><Company>mlc</Company><SetCode>16</SetCode><SubSet>2</SubSet><PostBackTo>review.jsp</PostBackTo><PostErrorsTo>review.jsp</PostErrorsTo><SaveExitPage>review.jsp</SaveExitPage></AuraControl><POLICY><ZNUWCAT>NB</ZNUWCAT><ZNEXTSYS>3</ZNEXTSYS><PRT1OPT>Y</PRT1OPT><PRT2OPT>Y</PRT2OPT><ZNGPCNO></ZNGPCNO><STATCODE>PS</STATCODE><CNTBRANCH>NJ</CNTBRANCH><TTMPRCNO>102222222211</TTMPRCNO><Chdrnum /><OCCDATE>20121025</OCCDATE><HPROPDTE>20121025</HPROPDTE><HPRRCVDT>20121025</HPRRCVDT><ZDDTEDIF>0</ZDDTEDIF><PolicyOwner><OWNERSEL>60004672</OWNERSEL><SALUTL>MR / MRS</SALUTL><LSURNAME>保单</LSURNAME><DOB>19630118</DOB><Age>49</Age><ZDDAYS></ZDDAYS><CLTSEX>F</CLTSEX><MARRYD></MARRYD><ZACLTADDR>居住地址</ZACLTADDR><CLTPCODE>122222</CLTPCODE><ADDRTYPE>1</ADDRTYPE><ZNBUSUT>工作单位</ZNBUSUT><CTRYCODE>01</CTRYCODE><NATLTY>01</NATLTY><CLRSKIND>1</CLRSKIND><RSKFLG>1</RSKFLG><IDNPRF>01</IDNPRF><SECUITYNO>21010219630118948X</SECUITYNO><EXPDTE>99999999</EXPDTE><INCPRF></INCPRF><INCDESC></INCDESC><DECGRSAL>12.0</DECGRSAL><RMBLPHONE>22222222222</RMBLPHONE><CLTPHONE></CLTPHONE><RINTERNET>22@22.2</RINTERNET><OCCPCODE>A001</OCCPCODE><ZNPIDCPYID>N</ZNPIDCPYID></PolicyOwner><OWNRISKSILIST><ZNRSKCD>ASJI</ZNRSKCD><SUMINS>10000.0</SUMINS><ZNRSKCD>ASLI</ZNRSKCD><SUMINS>10000.0</SUMINS></OWNRISKSILIST><BILLFREQ>01</BILLFREQ><ZNFPMOP>C</ZNFPMOP><MOP>C</MOP><ZDIVOPT></ZDIVOPT><ZNFOPT>03</ZNFOPT><CNTCURR>CNY</CNTCURR><BILLCURR>CNY</BILLCURR><REGISTER>PRC</REGISTER><SRCEBUS>1</SRCEBUS><DLVRMODE>04</DLVRMODE><ZAPSTADD>居住地址</ZAPSTADD><CLTPCODE03>122222</CLTPCODE03><ZNAGNTSEL>8609000003</ZNAGNTSEL><AGCOMRT>100</AGCOMRT><SubAgentList><ZNAGNTSEL01 /><SPLITC /></SubAgentList><ZNCSMNAME></ZNCSMNAME><INSLST><Insured><Life>01</Life><INSRISKSILIST><ZNRSKCD02>ASJI</ZNRSKCD02><SUMINS02>10000.0</SUMINS02><ZNRSKCD02>ASLI</ZNRSKCD02><SUMINS02>10000.0</SUMINS02></INSRISKSILIST><InsuredInfo><LIFCNUM>60004673</LIFCNUM><SALUTL02>MR / MRS</SALUTL02><LSURNAME02>失败</LSURNAME02><DOB02>19890118</DOB02><Age02>23</Age02><ZDDays02></ZDDays02><CLTSEX02>F</CLTSEX02><MARRYD02></MARRYD02><ZACLTADDR02>12</ZACLTADDR02><CLTPCODE02>222222</CLTPCODE02><ADDRTYPE02>1</ADDRTYPE02><ZNBUSUT02>工作单位</ZNBUSUT02><CTRYCODE02>01</CTRYCODE02><NATLTY02>01</NATLTY02><CLRSKIND02>1</CLRSKIND02><RSKFLG02>1</RSKFLG02><IDNPRF02>01</IDNPRF02><SECUITYNO02>320602198901185142</SECUITYNO02><EXPDTE02>99999999</EXPDTE02><INCPRF02></INCPRF02><INCDESC02></INCDESC02><DECGRSAL02>12.0</DECGRSAL02><RMBLPHONE02>22222222222</RMBLPHONE02><CLTPHONE02></CLTPHONE02><RINTERNET02>22@2.2</RINTERNET02><OCCPCODE02>A001</OCCPCODE02><ZNPIDCPYID02>N</ZNPIDCPYID02></InsuredInfo><RELATION>05</RELATION><SELECTION></SELECTION><HEIGHT>165</HEIGHT><WEIGHT>77</WEIGHT><SMOKING /><OCCUP>A001</OCCUP><Questionare><QUESTSET>MTQBA</QUESTSET><QuestionList><Question><QUESTIDF>A05</QUESTIDF><ANSWER>165</ANSWER></Question><Question><QUESTIDF>A06</QUESTIDF><ANSWER>77</ANSWER></Question><Question><QUESTIDF>S02</QUESTIDF><ANSWER>Y</ANSWER></Question><Question><QUESTIDF>S04</QUESTIDF><ANSWER>Y</ANSWER></Question></QuestionList></Questionare><HUWDCDTE></HUWDCDTE><COVLST><COVINF><Coverage>01</Coverage><RIDER>00</RIDER><ZNPRDCODE>WL02A</ZNPRDCODE><SUMIN>10000.0</SUMIN><RCESSAGE>106</RCESSAGE><RCESSTRM>0</RCESSTRM><PCESSAGE>0</PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE>0</BCESSAGE><BCESSTRM>0</BCESSTRM><MORTCLS>2</MORTCLS><INSTPRM>336.0</INSTPRM><LMPCNT /><ZPRFLG>N</ZPRFLG><ZNINVAMT /><ZNTRM /><ZUNIT>1</ZUNIT><LIVESNO>1</LIVESNO><PAYCLT></PAYCLT><PayBankInfor><BANKCODE></BANKCODE><BANKKEY></BANKKEY><BANKACCKEY></BANKACCKEY><BANKDESC></BANKDESC><BNKACTYP></BNKACTYP><CURRCODE></CURRCODE><DATEFROM></DATEFROM><TIMESUSE></TIMESUSE></PayBankInfor><FREQANN></FREQANN><ADVANCE></ADVANCE><ARREARS></ARREARS><GUARPERD></GUARPERD><WITHPROP></WITHPROP><WITHOPROP></WITHOPROP><NOMLIFE></NOMLIFE><DTHPERCN></DTHPERCN><DTHPERCO></DTHPERCO><Payment><PAYCLT02></PAYCLT02><CLTYPE></CLTYPE><RGPYMOP></RGPYMOP><REGPAYFREQ></REGPAYFREQ><PRCNT></PRCNT><CLAIMCUR>CNY</CLAIMCUR></Payment><RSUNIN></RSUNIN><PRCAMTIND></PRCAMTIND><PRMFLST><VRTFND01 /><UALPRC01 /><VRTFND02 /><UALPRC02 /><VRTFND03 /><UALPRC03 /><VRTFND04 /><UALPRC04 /><VRTFND05 /><UALPRC05 /><VRTFND06 /><UALPRC06 /><VRTFND07 /><UALPRC07 /><VRTFND08 /><UALPRC08 /><VRTFND09 /><UALPRC09 /><VRTFND10 /><UALPRC10 /></PRMFLST><RGUFLST><ZAVRTFND01 /><ZNSPLAMT01 /><ZAVRTFND02 /><ZNSPLAMT02 /><ZAVRTFND03 /><ZNSPLAMT03 /><ZAVRTFND04 /><ZNSPLAMT04 /><ZAVRTFND05 /><ZNSPLAMT05 /><ZAVRTFND06 /><ZNSPLAMT06 /><ZAVRTFND07 /><ZNSPLAMT07 /><ZAVRTFND08 /><ZNSPLAMT08 /><ZAVRTFND09 /><ZNSPLAMT09 /><ZAVRTFND10 /><ZNSPLAMT10 /></RGUFLST><ZACOVBAK01></ZACOVBAK01><ZACOVBAK02></ZACOVBAK02><ZACOVBAK03></ZACOVBAK03><ZACOVBAK04></ZACOVBAK04><ZACOVBAK05></ZACOVBAK05></COVINF></COVLST></Insured></INSLST><BeneficiaryList><Beneficiary><BNYTYPE>01</BNYTYPE><BNYSEL /><SALUTL04>MR &amp; MRS</SALUTL04><LSURNAME04>失败</LSURNAME04><DOB04>19890118</DOB04><CLTSEX04>F</CLTSEX04><MARRYD04></MARRYD04><ZACLTADDR04>12</ZACLTADDR04><ADDRTYPE04>1</ADDRTYPE04><ZNBUSUT04>工作单位</ZNBUSUT04><CTRYCODE04>01</CTRYCODE04><NATLTY04>01</NATLTY04><IDNPRF04>1</IDNPRF04><SECUITYNO04>320602198901185142</SECUITYNO04><EXPDTE04 /><ZNPIDCPYID04>N</ZNPIDCPYID04><CLTRELN02>00</CLTRELN02><BNYPC>100.0</BNYPC><ZBNYTLVL>01</ZBNYTLVL><EFFDATE></EFFDATE><ZDCLMPLN></ZDCLMPLN></Beneficiary></BeneficiaryList><FRTRecBank><BANKKEY02 /><BANKACCKEY02 /><BANKDESC02 /><BNKACTYP02 /><CURRCODE02 /><DATEFROM01 /><DATETO /></FRTRecBank><SEQRecBank><BANKKEY03 /><BANKACCKEY03 /><BANKDESC03 /><BNKACTYP03 /><CURRCODE03 /><DATEFROM02 /><DATETO02 /></SEQRecBank><TRANDATEX></TRANDATEX><BANKCODER></BANKCODER><TCHQDATE></TCHQDATE><BANKDESC01R>1</BANKDESC01R><BANKDESC03R></BANKDESC03R><RFCODE>CN</RFCODE><RFNUM></RFNUM><PAYTYPE></PAYTYPE><DOCORIGAMT></DOCORIGAMT><ZNOVRPAYOP>N</ZNOVRPAYOP><PackageInfo><ZNPKGCODE /><TOTPRE /><ZTOTSI /></PackageInfo><GeneralRemark><ALINE01></ALINE01><ALINE02></ALINE02></GeneralRemark><SACSCODE></SACSCODE><SACSTYPE></SACSTYPE><CAMPAIGN></CAMPAIGN><ZNPRJTCD></ZNPRJTCD><ZNEPOLFLG></ZNEPOLFLG><ZNBNKODR></ZNBNKODR><ZNDISPER></ZNDISPER><ZNSPCTYP></ZNSPCTYP><ZNBILLNO></ZNBILLNO><ZNINVBNK></ZNINVBNK><ZNVIPIND></ZNVIPIND><ZAPOLFLD1></ZAPOLFLD1><ZAPOLFLD2></ZAPOLFLD2><ZAPOLFLD3></ZAPOLFLD3><ZAPOLFLD4></ZAPOLFLD4><ZAPOLFLD5></ZAPOLFLD5></POLICY><HisIn><POLHIS><PolicyOwner><OWNERSEL05>60004672</OWNERSEL05><LSURNAME05>保单</LSURNAME05><DOB05>1963-01-18</DOB05><CLTSEX05>1</CLTSEX05><SECUITYNO05>21010219630118948X</SECUITYNO05><RMBLPHONE05>22222222222</RMBLPHONE05><CLTPHONE05></CLTPHONE05></PolicyOwner><InsuredList><Insured><LIFCNUM06>60004673</LIFCNUM06><LSURNAME06>失败</LSURNAME06><DOB06>1989-01-18</DOB06><CLTSEX06>1</CLTSEX06><SECUITYNO06>320602198901185142</SECUITYNO06><RMBLPHONE06>22222222222</RMBLPHONE06><CLTPHONE06></CLTPHONE06></Insured></InsuredList><BeneficiaryList /><PolicyInfo><CNTBRANCH02>NJ</CNTBRANCH02><TTMPRCNO02>102222222211</TTMPRCNO02><CHDRNUM02 /><ZNAGNTSEL02>8609000003</ZNAGNTSEL02><CHDRTYPE></CHDRTYPE><ZNCSMNAME02></ZNCSMNAME02><HPROPDTE02>20121025</HPROPDTE02><LIFE02>01</LIFE02><COVLIST><COVERAGE02>01</COVERAGE02><RIDER02>00</RIDER02><ZNPRDCODE02>WL02A</ZNPRDCODE02><RCESSAGE02>106</RCESSAGE02><RCESSTRM02>0</RCESSTRM02></COVLIST></PolicyInfo></POLHIS></HisIn></AURATX>");
            xmldoc.LoadXml("<AURATX><AuraControl><UniqueID>1731124260403_U</UniqueID><Company>mlc</Company><SetCode>16</SetCode><SubSet>2</SubSet><PostBackTo>review.jsp</PostBackTo><PostErrorsTo>review.jsp</PostErrorsTo><SaveExitPage>review.jsp</SaveExitPage></AuraControl><POLICY><ZNUWCAT>NB</ZNUWCAT><ZNEXTSYS>3</ZNEXTSYS><PRT1OPT>Y</PRT1OPT><PRT2OPT>Y</PRT2OPT><ZNGPCNO></ZNGPCNO><STATCODE>PS</STATCODE><CNTBRANCH>NJ</CNTBRANCH><TTMPRCNO>102222222211</TTMPRCNO><Chdrnum /><OCCDATE>20121025</OCCDATE><HPROPDTE>20121025</HPROPDTE><HPRRCVDT>20121025</HPRRCVDT><ZDDTEDIF>0</ZDDTEDIF><PolicyOwner><OWNERSEL>60004672</OWNERSEL><SALUTL>MR / MRS</SALUTL><LSURNAME>保单</LSURNAME><DOB>19630118</DOB><Age>49</Age><ZDDAYS></ZDDAYS><CLTSEX>F</CLTSEX><MARRYD></MARRYD><ZACLTADDR>居住地址</ZACLTADDR><CLTPCODE>122222</CLTPCODE><ADDRTYPE>1</ADDRTYPE><ZNBUSUT>工作单位</ZNBUSUT><CTRYCODE>01</CTRYCODE><NATLTY>01</NATLTY><CLRSKIND>1</CLRSKIND><RSKFLG>1</RSKFLG><IDNPRF>01</IDNPRF><SECUITYNO>21010219630118948X</SECUITYNO><EXPDTE>99999999</EXPDTE><INCPRF></INCPRF><INCDESC></INCDESC><DECGRSAL>12.0</DECGRSAL><RMBLPHONE>22222222222</RMBLPHONE><CLTPHONE></CLTPHONE><RINTERNET>22@22.2</RINTERNET><OCCPCODE>A001</OCCPCODE><ZNPIDCPYID>N</ZNPIDCPYID></PolicyOwner><OWNRISKSILIST><ZNRSKCD>ASJI</ZNRSKCD><SUMINS>10000.0</SUMINS><ZNRSKCD>ASLI</ZNRSKCD><SUMINS>10000.0</SUMINS></OWNRISKSILIST><BILLFREQ>01</BILLFREQ><ZNFPMOP>C</ZNFPMOP><MOP>C</MOP><ZDIVOPT></ZDIVOPT><ZNFOPT>03</ZNFOPT><CNTCURR>CNY</CNTCURR><BILLCURR>CNY</BILLCURR><REGISTER>PRC</REGISTER><SRCEBUS>1</SRCEBUS><DLVRMODE>04</DLVRMODE><ZAPSTADD>居住地址</ZAPSTADD><CLTPCODE03>122222</CLTPCODE03><ZNAGNTSEL>8609000003</ZNAGNTSEL><AGCOMRT>100</AGCOMRT><SubAgentList><ZNAGNTSEL01 /><SPLITC /></SubAgentList><ZNCSMNAME></ZNCSMNAME><INSLST><Insured><Life>01</Life><INSRISKSILIST><ZNRSKCD02>ASJI</ZNRSKCD02><SUMINS02>10000.0</SUMINS02><ZNRSKCD02>ASLI</ZNRSKCD02><SUMINS02>10000.0</SUMINS02></INSRISKSILIST><InsuredInfo><LIFCNUM>60004673</LIFCNUM><SALUTL02>MR / MRS</SALUTL02><LSURNAME02>失败</LSURNAME02><DOB02>19890118</DOB02><Age02>23</Age02><ZDDays02></ZDDays02><CLTSEX02>F</CLTSEX02><MARRYD02></MARRYD02><ZACLTADDR02>12</ZACLTADDR02><CLTPCODE02>222222</CLTPCODE02><ADDRTYPE02>1</ADDRTYPE02><ZNBUSUT02>工作单位</ZNBUSUT02><CTRYCODE02>01</CTRYCODE02><NATLTY02>01</NATLTY02><CLRSKIND02>1</CLRSKIND02><RSKFLG02>1</RSKFLG02><IDNPRF02>01</IDNPRF02><SECUITYNO02>320602198901185142</SECUITYNO02><EXPDTE02>99999999</EXPDTE02><INCPRF02></INCPRF02><INCDESC02></INCDESC02><DECGRSAL02>12.0</DECGRSAL02><RMBLPHONE02>22222222222</RMBLPHONE02><CLTPHONE02></CLTPHONE02><RINTERNET02>22@2.2</RINTERNET02><OCCPCODE02>A001</OCCPCODE02><ZNPIDCPYID02>N</ZNPIDCPYID02></InsuredInfo><RELATION>05</RELATION><SELECTION></SELECTION><HEIGHT>165</HEIGHT><WEIGHT>77</WEIGHT><SMOKING /><OCCUP>A001</OCCUP><Questionare><QUESTSET>MTQBA</QUESTSET><QuestionList><Question><QUESTIDF>A05</QUESTIDF><ANSWER>165</ANSWER></Question><Question><QUESTIDF>A06</QUESTIDF><ANSWER>77</ANSWER></Question><Question><QUESTIDF>S02</QUESTIDF><ANSWER>Y</ANSWER></Question><Question><QUESTIDF>S04</QUESTIDF><ANSWER>Y</ANSWER></Question></QuestionList></Questionare><HUWDCDTE></HUWDCDTE><COVLST><COVINF><Coverage>01</Coverage><RIDER>00</RIDER><ZNPRDCODE>WL02A</ZNPRDCODE><SUMIN>10000.0</SUMIN><RCESSAGE>106</RCESSAGE><RCESSTRM>0</RCESSTRM><PCESSAGE>0</PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE>0</BCESSAGE><BCESSTRM>0</BCESSTRM><MORTCLS>2</MORTCLS><INSTPRM>336.0</INSTPRM><LMPCNT /><ZPRFLG>N</ZPRFLG><ZNINVAMT /><ZNTRM /><ZUNIT>1</ZUNIT><LIVESNO>1</LIVESNO><PAYCLT></PAYCLT><PayBankInfor><BANKCODE></BANKCODE><BANKKEY></BANKKEY><BANKACCKEY></BANKACCKEY><BANKDESC></BANKDESC><BNKACTYP></BNKACTYP><CURRCODE></CURRCODE><DATEFROM></DATEFROM><TIMESUSE></TIMESUSE></PayBankInfor><FREQANN></FREQANN><ADVANCE></ADVANCE><ARREARS></ARREARS><GUARPERD></GUARPERD><WITHPROP></WITHPROP><WITHOPROP></WITHOPROP><NOMLIFE></NOMLIFE><DTHPERCN></DTHPERCN><DTHPERCO></DTHPERCO><Payment><PAYCLT02></PAYCLT02><CLTYPE></CLTYPE><RGPYMOP></RGPYMOP><REGPAYFREQ></REGPAYFREQ><PRCNT></PRCNT><CLAIMCUR>CNY</CLAIMCUR></Payment><RSUNIN></RSUNIN><PRCAMTIND></PRCAMTIND><PRMFLST><VRTFND01 /><UALPRC01 /><VRTFND02 /><UALPRC02 /><VRTFND03 /><UALPRC03 /><VRTFND04 /><UALPRC04 /><VRTFND05 /><UALPRC05 /><VRTFND06 /><UALPRC06 /><VRTFND07 /><UALPRC07 /><VRTFND08 /><UALPRC08 /><VRTFND09 /><UALPRC09 /><VRTFND10 /><UALPRC10 /></PRMFLST><RGUFLST><ZAVRTFND01 /><ZNSPLAMT01 /><ZAVRTFND02 /><ZNSPLAMT02 /><ZAVRTFND03 /><ZNSPLAMT03 /><ZAVRTFND04 /><ZNSPLAMT04 /><ZAVRTFND05 /><ZNSPLAMT05 /><ZAVRTFND06 /><ZNSPLAMT06 /><ZAVRTFND07 /><ZNSPLAMT07 /><ZAVRTFND08 /><ZNSPLAMT08 /><ZAVRTFND09 /><ZNSPLAMT09 /><ZAVRTFND10 /><ZNSPLAMT10 /></RGUFLST><ZACOVBAK01></ZACOVBAK01><ZACOVBAK02></ZACOVBAK02><ZACOVBAK03></ZACOVBAK03><ZACOVBAK04></ZACOVBAK04><ZACOVBAK05></ZACOVBAK05></COVINF></COVLST></Insured></INSLST><BeneficiaryList><Beneficiary><BNYTYPE>01</BNYTYPE><BNYSEL /><SALUTL04>MR &amp; MRS</SALUTL04><LSURNAME04>失败</LSURNAME04><DOB04>19890118</DOB04><CLTSEX04>F</CLTSEX04><MARRYD04></MARRYD04><ZACLTADDR04>12</ZACLTADDR04><ADDRTYPE04>1</ADDRTYPE04><ZNBUSUT04>工作单位</ZNBUSUT04><CTRYCODE04>01</CTRYCODE04><NATLTY04>01</NATLTY04><IDNPRF04>1</IDNPRF04><SECUITYNO04>320602198901185142</SECUITYNO04><EXPDTE04 /><ZNPIDCPYID04>N</ZNPIDCPYID04><CLTRELN02>00</CLTRELN02><BNYPC>100.0</BNYPC><ZBNYTLVL>01</ZBNYTLVL><EFFDATE></EFFDATE><ZDCLMPLN></ZDCLMPLN></Beneficiary></BeneficiaryList><FRTRecBank><BANKKEY02 /><BANKACCKEY02 /><BANKDESC02 /><BNKACTYP02 /><CURRCODE02 /><DATEFROM01 /><DATETO /></FRTRecBank><SEQRecBank><BANKKEY03 /><BANKACCKEY03 /><BANKDESC03 /><BNKACTYP03 /><CURRCODE03 /><DATEFROM02 /><DATETO02 /></SEQRecBank><TRANDATEX></TRANDATEX><BANKCODER></BANKCODER><TCHQDATE></TCHQDATE><BANKDESC01R>1</BANKDESC01R><BANKDESC03R></BANKDESC03R><RFCODE>CN</RFCODE><RFNUM></RFNUM><PAYTYPE></PAYTYPE><DOCORIGAMT></DOCORIGAMT><ZNOVRPAYOP>N</ZNOVRPAYOP><PackageInfo><ZNPKGCODE /><TOTPRE /><ZTOTSI /></PackageInfo><GeneralRemark><ALINE01></ALINE01><ALINE02></ALINE02></GeneralRemark><SACSCODE></SACSCODE><SACSTYPE></SACSTYPE><CAMPAIGN></CAMPAIGN><ZNPRJTCD></ZNPRJTCD><ZNEPOLFLG></ZNEPOLFLG><ZNBNKODR></ZNBNKODR><ZNDISPER></ZNDISPER><ZNSPCTYP></ZNSPCTYP><ZNBILLNO></ZNBILLNO><ZNINVBNK></ZNINVBNK><ZNVIPIND></ZNVIPIND><ZAPOLFLD1></ZAPOLFLD1><ZAPOLFLD2></ZAPOLFLD2><ZAPOLFLD3></ZAPOLFLD3><ZAPOLFLD4></ZAPOLFLD4><ZAPOLFLD5></ZAPOLFLD5></POLICY><HisIn><POLHIS><PolicyOwner><OWNERSEL05>60004672</OWNERSEL05><LSURNAME05>保单</LSURNAME05><DOB05>1963-01-18</DOB05><CLTSEX05>1</CLTSEX05><SECUITYNO05>21010219630118948X</SECUITYNO05><RMBLPHONE05>22222222222</RMBLPHONE05><CLTPHONE05></CLTPHONE05></PolicyOwner><InsuredList><Insured><LIFCNUM06>60004673</LIFCNUM06><LSURNAME06>失败</LSURNAME06><DOB06>1989-01-18</DOB06><CLTSEX06>1</CLTSEX06><SECUITYNO06>320602198901185142</SECUITYNO06><RMBLPHONE06>22222222222</RMBLPHONE06><CLTPHONE06></CLTPHONE06></Insured></InsuredList><BeneficiaryList /><PolicyInfo><CNTBRANCH02>NJ</CNTBRANCH02><TTMPRCNO02>102222222211</TTMPRCNO02><CHDRNUM02 /><ZNAGNTSEL02>8609000003</ZNAGNTSEL02><CHDRTYPE></CHDRTYPE><ZNCSMNAME02></ZNCSMNAME02><HPROPDTE02>20121025</HPROPDTE02><LIFE02>01</LIFE02><COVLIST><COVERAGE02>01</COVERAGE02><RIDER02>00</RIDER02><ZNPRDCODE02>WL02A</ZNPRDCODE02><RCESSAGE02>106</RCESSAGE02><RCESSTRM02>0</RCESSTRM02></COVLIST></PolicyInfo></POLHIS></HisIn></AURATX>");
            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "AURA",
                    SrvOpName = "underwrite",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }

        [TestMethod]
        public void AURACheckRuleErrorTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<AURATX><AuraControl><UniqueID>MLC_Test1</UniqueID><Company>NJ</Company><SetCode>16</SetCode><SubSet>1</SubSet><PostBackTo>review.jsp</PostBackTo><PostErrorsTo>review.jsp</PostErrorsTo><SaveExitPage>review.jsp</SaveExitPage></AuraControl><POLICY><ZNUWCAT>NB</ZNUWCAT><ZNEXTSYS>MTS</ZNEXTSYS><PRT1OPT>Y</PRT1OPT><PRT2OPT>N</PRT2OPT><ZNGPCNO /><STATCODE>PS</STATCODE><CNTBRANCH></CNTBRANCH><TTMPRCNO /><Chdrnum /><OCCDATE>20121013</OCCDATE><HPROPDTE>20121017</HPROPDTE><HPRRCVDT>20121017</HPRRCVDT><ZDDTEDIF /><PolicyOwner><OWNERSEL></OWNERSEL><SALUTL>MR &amp; MRS</SALUTL><LSURNAME>LSURNAME</LSURNAME><DOB>19850203</DOB><Age>27</Age><ZDDAYS></ZDDAYS><CLTSEX>F</CLTSEX><MARRYD>S</MARRYD><ZACLTADDR>上海市嘉定区安亭镇墨玉路 28 号嘉正国际大厦 1114 室</ZACLTADDR><CLTPCODE>200092</CLTPCODE><ADDRTYPE>1</ADDRTYPE><ZNBUSUT></ZNBUSUT><CTRYCODE>01</CTRYCODE><NATLTY>01</NATLTY><CLRSKIND>1</CLRSKIND><RSKFLG>1</RSKFLG><IDNPRF>01</IDNPRF><SECUITYNO>310109198502032523</SECUITYNO><EXPDTE>9999-12-31</EXPDTE><INCPRF></INCPRF><INCDESC></INCDESC><DECGRSAL></DECGRSAL><RMBLPHONE>018602199751</RMBLPHONE><CLTPHONE>018602199751</CLTPHONE><RINTERNET></RINTERNET><OCCPCODE>A001</OCCPCODE><ZNPIDCPYID>Y</ZNPIDCPYID></PolicyOwner><OWNRISKSILIST><ZNRSKCD /><SUMINS /><ZNRSKCD /><SUMINS /><ZNRSKCD /><SUMINS /></OWNRISKSILIST><BILLFREQ>12</BILLFREQ><ZNFPMOP>D</ZNFPMOP><MOP>D</MOP><ZDIVOPT></ZDIVOPT><ZNFOPT></ZNFOPT><CNTCURR>CNY</CNTCURR><BILLCURR>CNY</BILLCURR><REGISTER>PRC</REGISTER><SRCEBUS>TM</SRCEBUS><DLVRMODE /><ZAPSTADD>上海市嘉定区安亭镇墨玉路 28 号嘉正国际大厦 1114 室</ZAPSTADD><CLTPCODE03>200092</CLTPCODE03><ZNAGNTSEL>802649</ZNAGNTSEL><AGCOMRT></AGCOMRT><SubAgentList><ZNAGNTSEL01>802649</ZNAGNTSEL01><SPLITC>100</SPLITC><ZNAGNTSEL01 /><SPLITC /><ZNAGNTSEL01 /><SPLITC /></SubAgentList><ZNCSMNAME>李从玲/802649</ZNCSMNAME><INSLST><Insured><Life>01</Life><INSRISKSILIST><ZNRSKCD02 /><SUMINS02 /><ZNRSKCD02 /><SUMINS02 /><ZNRSKCD02 /><SUMINS02 /></INSRISKSILIST><InsuredInfo><LIFCNUM>CUSTOMID13</LIFCNUM><SALUTL02>MR/MRS</SALUTL02><LSURNAME02>俎四</LSURNAME02><DOB02>19850203</DOB02><Age02>27</Age02><ZDDays02></ZDDays02><CLTSEX02>F</CLTSEX02><MARRYD02>S</MARRYD02><ZACLTADDR02>上海市嘉定区安亭镇墨玉路 28 号嘉正国际大厦 1114 室</ZACLTADDR02><CLTPCODE02>000000</CLTPCODE02><ADDRTYPE02>1</ADDRTYPE02><ZNBUSUT02></ZNBUSUT02><CTRYCODE02>01</CTRYCODE02><NATLTY02>01</NATLTY02><CLRSKIND02>1</CLRSKIND02><RSKFLG02>1</RSKFLG02><IDNPRF02>01</IDNPRF02><SECUITYNO02>310109198502032523</SECUITYNO02><EXPDTE02>9999-12-31</EXPDTE02><INCPRF02></INCPRF02><INCDESC02></INCDESC02><DECGRSAL02></DECGRSAL02><RMBLPHONE02></RMBLPHONE02><CLTPHONE02>018602199751</CLTPHONE02><RINTERNET02></RINTERNET02><OCCPCODE02>A001</OCCPCODE02><ZNPIDCPYID02>Y</ZNPIDCPYID02></InsuredInfo><RELATION>00</RELATION><SELECTION>NIL</SELECTION><HEIGHT></HEIGHT><WEIGHT></WEIGHT><SMOKING></SMOKING><OCCUP>A001</OCCUP><Questionare><QUESTSET>MTQM3</QUESTSET><QuestionList><Question><QUESTIDF>T01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>T02</QUESTIDF><ANSWER>N</ANSWER></Question></QuestionList></Questionare><HUWDCDTE></HUWDCDTE><COVLST><COVINF><Coverage>01</Coverage><RIDER>00</RIDER><ZNPRDCODE>RTM214</ZNPRDCODE><SUMIN>100000</SUMIN><RCESSAGE></RCESSAGE><RCESSTRM>20</RCESSTRM><PCESSAGE></PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE></BCESSAGE><BCESSTRM></BCESSTRM><MORTCLS></MORTCLS><INSTPRM></INSTPRM><LMPCNT></LMPCNT><ZPRFLG></ZPRFLG><ZNINVAMT></ZNINVAMT><ZNTRM></ZNTRM><ZUNIT>1</ZUNIT><LIVESNO>1</LIVESNO><PAYCLT></PAYCLT><PayBankInfor><BANKCODE></BANKCODE><BANKKEY /><BANKACCKEY></BANKACCKEY><BANKDESC></BANKDESC><BNKACTYP></BNKACTYP><CURRCODE></CURRCODE><DATEFROM></DATEFROM><TIMESUSE></TIMESUSE></PayBankInfor><FREQANN /><ADVANCE /><ARREARS /><GUARPERD /><WITHPROP /><WITHOPROP /><NOMLIFE /><DTHPERCN /><DTHPERCO /><Payment><PAYCLT02></PAYCLT02><CLTYPE></CLTYPE><RGPYMOP></RGPYMOP><REGPAYFREQ></REGPAYFREQ><PRCNT></PRCNT><CLAIMCUR>CNY</CLAIMCUR></Payment><RSUNIN /><PRCAMTIND /><PRMFLST><VRTFND01 /><UALPRC01 /><VRTFND02 /><UALPRC02 /><VRTFND03 /><UALPRC03 /><VRTFND04 /><UALPRC04 /><VRTFND05 /><UALPRC05 /><VRTFND06 /><UALPRC06 /><VRTFND07 /><UALPRC07 /><VRTFND08 /><UALPRC08 /><VRTFND09 /><UALPRC09 /><VRTFND10 /><UALPRC10 /></PRMFLST><RGUFLST><ZAVRTFND01 /><ZNSPLAMT01 /><ZAVRTFND02 /><ZNSPLAMT02 /><ZAVRTFND03 /><ZNSPLAMT03 /><ZAVRTFND04 /><ZNSPLAMT04 /><ZAVRTFND05 /><ZNSPLAMT05 /><ZAVRTFND06 /><ZNSPLAMT06 /><ZAVRTFND07 /><ZNSPLAMT07 /><ZAVRTFND08 /><ZNSPLAMT08 /><ZAVRTFND09 /><ZNSPLAMT09 /><ZAVRTFND10 /><ZNSPLAMT10 /></RGUFLST><ZACOVBAK01 /><ZACOVBAK02 /><ZACOVBAK03 /><ZACOVBAK04 /><ZACOVBAK05 /></COVINF><COVINF><Coverage /><RIDER>01</RIDER><ZNPRDCODE>ACI208</ZNPRDCODE><SUMIN>100000</SUMIN><RCESSAGE></RCESSAGE><RCESSTRM>20</RCESSTRM><PCESSAGE></PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE></BCESSAGE><BCESSTRM></BCESSTRM><MORTCLS></MORTCLS><INSTPRM></INSTPRM><LMPCNT></LMPCNT><ZPRFLG></ZPRFLG><ZNINVAMT></ZNINVAMT><ZNTRM></ZNTRM><ZUNIT>1</ZUNIT><LIVESNO>1</LIVESNO><PAYCLT></PAYCLT><PayBankInfor><BANKCODE></BANKCODE><BANKKEY /><BANKACCKEY></BANKACCKEY><BANKDESC></BANKDESC><BNKACTYP></BNKACTYP><CURRCODE></CURRCODE><DATEFROM></DATEFROM><TIMESUSE></TIMESUSE></PayBankInfor><FREQANN /><ADVANCE /><ARREARS /><GUARPERD /><WITHPROP /><WITHOPROP /><NOMLIFE /><DTHPERCN /><DTHPERCO /><Payment><PAYCLT02></PAYCLT02><CLTYPE></CLTYPE><RGPYMOP></RGPYMOP><REGPAYFREQ></REGPAYFREQ><PRCNT></PRCNT><CLAIMCUR>CNY</CLAIMCUR></Payment><RSUNIN /><PRCAMTIND /><PRMFLST><VRTFND01 /><UALPRC01 /><VRTFND02 /><UALPRC02 /><VRTFND03 /><UALPRC03 /><VRTFND04 /><UALPRC04 /><VRTFND05 /><UALPRC05 /><VRTFND06 /><UALPRC06 /><VRTFND07 /><UALPRC07 /><VRTFND08 /><UALPRC08 /><VRTFND09 /><UALPRC09 /><VRTFND10 /><UALPRC10 /></PRMFLST><RGUFLST><ZAVRTFND01 /><ZNSPLAMT01 /><ZAVRTFND02 /><ZNSPLAMT02 /><ZAVRTFND03 /><ZNSPLAMT03 /><ZAVRTFND04 /><ZNSPLAMT04 /><ZAVRTFND05 /><ZNSPLAMT05 /><ZAVRTFND06 /><ZNSPLAMT06 /><ZAVRTFND07 /><ZNSPLAMT07 /><ZAVRTFND08 /><ZNSPLAMT08 /><ZAVRTFND09 /><ZNSPLAMT09 /><ZAVRTFND10 /><ZNSPLAMT10 /></RGUFLST><ZACOVBAK01 /><ZACOVBAK02 /><ZACOVBAK03 /><ZACOVBAK04 /><ZACOVBAK05 /></COVINF></COVLST></Insured></INSLST><BeneficiaryList><Beneficiary><BNYTYPE>02</BNYTYPE><BNYSEL></BNYSEL><SALUTL04>先生</SALUTL04><LSURNAME04>法定</LSURNAME04><DOB04>20000101</DOB04><CLTSEX04>M</CLTSEX04><MARRYD04></MARRYD04><ZACLTADDR04>未知</ZACLTADDR04><ADDRTYPE04>未知</ADDRTYPE04><ZNBUSUT04>未知</ZNBUSUT04><CTRYCODE04>01</CTRYCODE04><NATLTY04>01</NATLTY04><IDNPRF04>03</IDNPRF04><SECUITYNO04>0</SECUITYNO04><EXPDTE04>9999-12-31</EXPDTE04><ZNPIDCPYID04></ZNPIDCPYID04><CLTRELN02>5</CLTRELN02><BNYPC></BNYPC><ZBNYTLVL>01</ZBNYTLVL><EFFDATE></EFFDATE><ZDCLMPLN></ZDCLMPLN></Beneficiary></BeneficiaryList><FRTRecBank><BANKKEY02></BANKKEY02><BANKACCKEY02></BANKACCKEY02><BANKDESC02></BANKDESC02><BNKACTYP02></BNKACTYP02><CURRCODE02>CNY</CURRCODE02><DATEFROM01></DATEFROM01><DATETO></DATETO></FRTRecBank><SEQRecBank><BANKKEY03></BANKKEY03><BANKACCKEY03></BANKACCKEY03><BANKDESC03></BANKDESC03><BNKACTYP03></BNKACTYP03><CURRCODE03>CNY</CURRCODE03><DATEFROM02></DATEFROM02><DATETO02></DATETO02></SEQRecBank><TRANDATEX></TRANDATEX><BANKCODER></BANKCODER><TCHQDATE></TCHQDATE><BANKDESC01R></BANKDESC01R><BANKDESC03R></BANKDESC03R><RFCODE></RFCODE><RFNUM></RFNUM><PAYTYPE></PAYTYPE><DOCORIGAMT></DOCORIGAMT><ZNOVRPAYOP></ZNOVRPAYOP><PackageInfo><ZNPKGCODE></ZNPKGCODE><TOTPRE>343.30000000</TOTPRE><ZTOTSI></ZTOTSI></PackageInfo><GeneralRemark><ALINE01></ALINE01><ALINE02></ALINE02></GeneralRemark><SACSCODE></SACSCODE><SACSTYPE></SACSTYPE><CAMPAIGN></CAMPAIGN><ZNPRJTCD></ZNPRJTCD><ZNEPOLFLG>02</ZNEPOLFLG><ZNBNKODR>0000000000000000</ZNBNKODR><ZNDISPER>1</ZNDISPER><ZNSPCTYP></ZNSPCTYP><ZNBILLNO></ZNBILLNO><ZNINVBNK></ZNINVBNK><ZNVIPIND /><ZAPOLFLD1></ZAPOLFLD1><ZAPOLFLD2></ZAPOLFLD2><ZAPOLFLD3></ZAPOLFLD3><ZAPOLFLD4></ZAPOLFLD4><ZAPOLFLD5></ZAPOLFLD5></POLICY><HisIn><POLHIS><PolicyOwner><OWNERSEL05>CUSTOMID13</OWNERSEL05><LSURNAME05>LSURNAME05</LSURNAME05><DOB05>19850203</DOB05><CLTSEX05>F</CLTSEX05><SECUITYNO05>310109198502032523</SECUITYNO05><RMBLPHONE05>018602199751</RMBLPHONE05><CLTPHONE05>018602199751</CLTPHONE05></PolicyOwner><InsuredList><Insured><LIFCNUM06>CUSTOMID13</LIFCNUM06><LSURNAME06>LSURNAME06</LSURNAME06><DOB06>19850203</DOB06><CLTSEX06>F</CLTSEX06><SECUITYNO06>310109198502032523</SECUITYNO06><RMBLPHONE06></RMBLPHONE06><CLTPHONE06>018602199751</CLTPHONE06></Insured></InsuredList><BeneficiaryList><Beneficiary><LSURNAME07>法定</LSURNAME07><BNYSEL07></BNYSEL07><DOB07>20000101</DOB07><CLTSEX07>M</CLTSEX07><SECUITYNO07>0</SECUITYNO07></Beneficiary></BeneficiaryList><PolicyInfo><CNTBRANCH02></CNTBRANCH02><TTMPRCNO02 /><CHDRNUM02 /><ZNAGNTSEL02>802649</ZNAGNTSEL02><CHDRTYPE></CHDRTYPE><ZNCSMNAME02></ZNCSMNAME02><HPROPDTE02>20121012</HPROPDTE02><LIFE02>01</LIFE02><COVLIST><COVERAGE02 /><RIDER02 /><ZNPRDCODE02 /><RCESSAGE02 /><RCESSTRM02 /></COVLIST></PolicyInfo></POLHIS></HisIn></AURATX>");
            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "AURA",
                    SrvOpName = "underwrite",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "8");
        }

        [TestMethod]
        public void LAinquiryInsPolHistserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            //xmldoc.LoadXml("<Policy><PolicyOwner><OWNERSEL>60003916</OWNERSEL><LSURNAME>TestB</LSURNAME><DOB>19810101</DOB><CLTSEX>M</CLTSEX><IDNNUM></IDNNUM><RMBLPHONE></RMBLPHONE><CLTPHONE01></CLTPHONE01></PolicyOwner><Insureds><Insured><LIFCNUM>60003916</LIFCNUM><LSURNAME>TestB</LSURNAME><DOB>19810101</DOB><CLTSEX>M</CLTSEX><IDNNUM></IDNNUM><RMBLPHONE></RMBLPHONE><CLTPHONE01></CLTPHONE01></Insured></Insureds><BeneficiaryList><Beneficiary><LSURNAME></LSURNAME><BNYSEL></BNYSEL><DOB></DOB><CLTSEX></CLTSEX><IDNNUM></IDNNUM></Beneficiary></BeneficiaryList><PolicyInfo><ProposalNum>00006252</ProposalNum><Chdrnum>00006252</Chdrnum><AGNTSEL>00000050003574</AGNTSEL><CHDRTYPE>R52</CHDRTYPE><OprName></OprName><HPROPDTE>20121019</HPROPDTE><Insured><Life>01</Life><CoverageList><Coverage>01</Coverage><RIDER>00</RIDER><CRTABLE>RTM101</CRTABLE><RCESSAGE></RCESSAGE><RCESSTRM>15</RCESSTRM><PCESSAGE></PCESSAGE><PCESSTRM></PCESSTRM><BCESSAGE></BCESSAGE><BCESSTRM></BCESSTRM><Coverage>01</Coverage><RIDER>01</RIDER><CRTABLE>ACI101</CRTABLE><RCESSAGE></RCESSAGE><RCESSTRM>10</RCESSTRM><PCESSAGE></PCESSAGE><PCESSTRM></PCESSTRM><BCESSAGE></BCESSAGE><BCESSTRM></BCESSTRM></CoverageList></Insured></PolicyInfo></Policy>");
            //xmldoc.LoadXml("<ns1:Policy xmlns:ns1=\"http://MetLifeEAI.EAISchema\"><ns1:PolicyOwner><ns1:OWNERSEL>CUSTOMID12</ns1:OWNERSEL><ns1:LSURNAME>AS</ns1:LSURNAME><ns1:DOB>19800130</ns1:DOB><ns1:CLTSEX>M</ns1:CLTSEX><ns1:IDNNUM>340603198001300419</ns1:IDNNUM><ns1:RMBLPHONE>13910959000</ns1:RMBLPHONE><ns1:CLTPHONE01>85300000</ns1:CLTPHONE01></ns1:PolicyOwner><ns1:Insureds><ns1:Insured><ns1:LIFCNUM>CUSTOMID13</ns1:LIFCNUM><ns1:LSURNAME>ASD</ns1:LSURNAME><ns1:DOB>19800130</ns1:DOB><ns1:CLTSEX>M</ns1:CLTSEX><ns1:IDNNUM>34060319800130041X</ns1:IDNNUM><ns1:RMBLPHONE>13910959001</ns1:RMBLPHONE><ns1:CLTPHONE01>85300001</ns1:CLTPHONE01></ns1:Insured></ns1:Insureds><ns1:BeneficiaryList><ns1:Beneficiary><ns1:LSURNAME>DFG</ns1:LSURNAME><ns1:BNYSEL>dgdfg</ns1:BNYSEL><ns1:DOB>20120304</ns1:DOB><ns1:CLTSEX>23434</ns1:CLTSEX><ns1:IDNNUM>24234</ns1:IDNNUM></ns1:Beneficiary></ns1:BeneficiaryList><ns1:PolicyInfo><ns1:ProposalNum>BJA001079899</ns1:ProposalNum><ns1:Chdrnum>12000001</ns1:Chdrnum><ns1:AGNTSEL>8601810153</ns1:AGNTSEL><ns1:CHDRTYPE>3456</ns1:CHDRTYPE><ns1:OprName>0000002</ns1:OprName><ns1:HPROPDTE>20120630</ns1:HPROPDTE><ns1:Insured><ns1:Life>01</ns1:Life><ns1:CoverageList><ns1:Coverage>45</ns1:Coverage></ns1:CoverageList></ns1:Insured></ns1:PolicyInfo></ns1:Policy>");
            xmldoc.LoadXml("<ns1:Policy xmlns:ns1=\"http://MetLifeEAI.EAISchema\"><ns1:PolicyOwner><ns1:OWNERSEL>01</ns1:OWNERSEL><ns1:LSURNAME>testaura</ns1:LSURNAME><ns1:DOB>19850203</ns1:DOB><ns1:CLTSEX>F</ns1:CLTSEX><ns1:IDNNUM>310109198502032523</ns1:IDNNUM><ns1:RMBLPHONE>018602199751</ns1:RMBLPHONE><ns1:CLTPHONE01>018602199751</ns1:CLTPHONE01></ns1:PolicyOwner><ns1:Insureds><ns1:Insured><ns1:LIFCNUM>01</ns1:LIFCNUM><ns1:LSURNAME>testaura</ns1:LSURNAME><ns1:DOB>19850203</ns1:DOB><ns1:CLTSEX>F</ns1:CLTSEX><ns1:IDNNUM>310109198502032523</ns1:IDNNUM><ns1:RMBLPHONE>0</ns1:RMBLPHONE><ns1:CLTPHONE01>018602199751</ns1:CLTPHONE01></ns1:Insured></ns1:Insureds><ns1:BeneficiaryList><ns1:Beneficiary><ns1:LSURNAME></ns1:LSURNAME><ns1:BNYSEL>01</ns1:BNYSEL><ns1:DOB></ns1:DOB><ns1:CLTSEX></ns1:CLTSEX><ns1:IDNNUM></ns1:IDNNUM></ns1:Beneficiary></ns1:BeneficiaryList><ns1:PolicyInfo><ns1:ProposalNum>TP0000904894</ns1:ProposalNum><ns1:Chdrnum>0</ns1:Chdrnum><ns1:AGNTSEL>8609802649</ns1:AGNTSEL><ns1:CHDRTYPE>NJ</ns1:CHDRTYPE><ns1:OprName>test</ns1:OprName><ns1:HPROPDTE>20121012</ns1:HPROPDTE><ns1:Insured><ns1:Life>01</ns1:Life><ns1:CoverageList><ns1:Coverage>01</ns1:Coverage><ns1:RIDER>01</ns1:RIDER><ns1:CRTABLE>ACI208</ns1:CRTABLE><ns1:RCESSAGE>0</ns1:RCESSAGE><ns1:RCESSTRM>0</ns1:RCESSTRM><ns1:PCESSAGE></ns1:PCESSAGE><ns1:PCESSTRM></ns1:PCESSTRM><ns1:BCESSAGE></ns1:BCESSAGE><ns1:BCESSTRM></ns1:BCESSTRM></ns1:CoverageList></ns1:Insured></ns1:PolicyInfo></ns1:Policy>");
            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "inquiryInsPolHistservice",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }

        [TestMethod]
        public void LAvalClientserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<val:in0 xmlns:val=\"http://valClient.msp.csc\" xmlns:urn=\"urn:BeanService\" xmlns:val1=\"http://10.165.4.76:8080/axis/services/valClientservice\">  <urn:BRANCH>NJ</urn:BRANCH>  <!--机构代码-->  <urn:COMMITFLAG>Y</urn:COMMITFLAG>  <!--提交标识-->  <urn:COMPANY>2</urn:COMPANY>  <!--公司代码-->  <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD>  <!--是否忽略Driver被Hold-->  <urn:LANGUAGE>E</urn:LANGUAGE>  <!--语言-->  <urn:OBJECTID>CLT</urn:OBJECTID>  <!--BO名称-->  <urn:PASSWORD>123456</urn:PASSWORD>  <!--口令-->  <urn:USRPRF>RZOU</urn:USRPRF>  <!--用户-->  <urn:VERBID>VAL</urn:VERBID>  <!--Method-->  <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC>  <!--抑制RCLRSC-->  <urn:APPCLIENTLIST>    <val1:item>      <urn:CNTBRANCH>NJ</urn:CNTBRANCH>      <!--分公司代码-->      <urn:TTMPRCNO>10002908</urn:TTMPRCNO>      <!--投保单号-->      <urn:ZNBAKFLD></urn:ZNBAKFLD>      <!--预留字段-->      <urn:CLIENTLIST>        <val1:item>          <urn:CLIENTINFO>            <val1:item>              <urn:SEQNO>01</urn:SEQNO>              <!--序号-->              <urn:LSURNAME>何文静</urn:LSURNAME>              <!--姓名-->              <urn:DOB>19890913</urn:DOB>              <!--生日-->              <urn:IDNNUM>320830198909131436</urn:IDNNUM>              <!--证件代码-->            </val1:item>          </urn:CLIENTINFO>        </val1:item>      </urn:CLIENTLIST>    </val1:item>  </urn:APPCLIENTLIST></val:in0>");

            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "valClientservice",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }

        [TestMethod]
        public void LAcalPremiumserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<cal:in0 xmlns:cal=\"http://calPremium.msp.csc\" xmlns:urn=\"urn:BeanService\" xmlns:cal1=\"http://10.165.4.76:8080/axis/services/calPremiumservice\"><urn:BRANCH>NJ</urn:BRANCH><urn:COMMITFLAG>Y</urn:COMMITFLAG><urn:COMPANY>2</urn:COMPANY><urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD><urn:LANGUAGE>S</urn:LANGUAGE><urn:OBJECTID>PRM</urn:OBJECTID><urn:PASSWORD>123456</urn:PASSWORD><urn:USRPRF>RZOU</urn:USRPRF><urn:VERBID>CAL</urn:VERBID><urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC><urn:PREMIUM><cal1:item><urn:BILLCURR>CNY</urn:BILLCURR><urn:BILLFREQ>12</urn:BILLFREQ><urn:CHDRTYPE /><urn:CNTBRANCH>NJ</urn:CNTBRANCH><urn:CNTCURR>CNY</urn:CNTCURR><urn:INSUREDLIST><cal1:item><urn:INSURED><cal1:item><urn:CLTDOB>19800101</urn:CLTDOB><urn:COVERAGELIST><cal1:item><urn:COVERAGEINFO><cal1:item><urn:BENPLN /><urn:CCDATE>20121025</urn:CCDATE><urn:COVERAGE>01</urn:COVERAGE><urn:INSTPRM>22.50000000</urn:INSTPRM><urn:JLSEX /><urn:LIVESNO>1</urn:LIVESNO><urn:PCESSAGE>0</urn:PCESSAGE><urn:PCESSTRM>1</urn:PCESSTRM><urn:RCESSAGE>0</urn:RCESSAGE><urn:RCESSTRM>1</urn:RCESSTRM><urn:RIDER>00</urn:RIDER><urn:SUMIN>100000</urn:SUMIN><urn:ZNDISPER>1</urn:ZNDISPER><urn:ZNJLAGE /><urn:ZNPRDCODE>TPA203</urn:ZNPRDCODE><urn:ZNRFAGE /></cal1:item></urn:COVERAGEINFO></cal1:item><cal1:item><urn:COVERAGEINFO><cal1:item><urn:BENPLN /><urn:CCDATE>20121025</urn:CCDATE><urn:COVERAGE>01</urn:COVERAGE><urn:INSTPRM>10.10000000</urn:INSTPRM><urn:JLSEX /><urn:LIVESNO>1</urn:LIVESNO><urn:PCESSAGE>0</urn:PCESSAGE><urn:PCESSTRM>1</urn:PCESSTRM><urn:RCESSAGE>0</urn:RCESSAGE><urn:RCESSTRM>1</urn:RCESSTRM><urn:RIDER>01</urn:RIDER><urn:SUMIN>100000</urn:SUMIN><urn:ZNDISPER>1</urn:ZNDISPER><urn:ZNJLAGE /><urn:ZNPRDCODE>TTA202</urn:ZNPRDCODE><urn:ZNRFAGE /></cal1:item></urn:COVERAGEINFO></cal1:item></urn:COVERAGELIST><urn:INSAGE>32</urn:INSAGE><urn:LIFCNUM /><urn:LIFE>01</urn:LIFE><urn:OCCUPD>B102</urn:OCCUPD><urn:PACKAGEINFO><cal1:item><urn:TOTPRE>0</urn:TOTPRE><urn:ZNPKGCODE>TPA203</urn:ZNPKGCODE><urn:ZTOTSI>0</urn:ZTOTSI></cal1:item></urn:PACKAGEINFO><urn:SEX>F</urn:SEX></cal1:item></urn:INSURED></cal1:item></urn:INSUREDLIST><urn:OCCDATE>20121025</urn:OCCDATE><urn:POLICYOWNER><cal1:item><urn:AGE>32</urn:AGE><urn:CLTSEX>M</urn:CLTSEX><urn:DOB>19800101</urn:DOB><urn:OCCUP>B102</urn:OCCUP><urn:OWNERSEL /></cal1:item></urn:POLICYOWNER><urn:TTMPRCNO /><urn:ZNBAKFLD></urn:ZNBAKFLD></cal1:item></urn:PREMIUM></cal:in0>");

            XmlElement element = (XmlElement)xmldoc.FirstChild;

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "calPremiumservice",
                    SenderID = "Dox"
                },

                MsgBody = element,
            };

            ESBWebEntrySoapClient client = new ESBWebEntrySoapClient();

            var result = client.ProcessMessage(envelope);

            Assert.AreEqual(result.ESBHeader.ESBRspCode, "0");
        }

        [TestMethod]
        public void LAupdateClientInfserviceTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateClientInf.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CLTIND>N</urn:CLTIND> <urn:CLTPHONE01>88888888</urn:CLTPHONE01> <urn:CLTPHONE02>12344321</urn:CLTPHONE02> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:INCLNTNUM>60005522</urn:INCLNTNUM> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>CPU</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:RMBLPHONE>13601233333</urn:RMBLPHONE> <urn:SUPPRESSRCLRSC>N</urn:SUPPRESSRCLRSC> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "updateClientInfservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [TestMethod]
        public void LAapplyContractUpdateTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<app:in0 xmlns:app=\"http://applyContractUpdate.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013090</urn:CHDRSEL> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:EFFDATE>20121119</urn:EFFDATE> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>PRG</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>REG</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC> <urn:ZNPOSTRCD>T622</urn:ZNPOSTRCD> <urn:ZNREGTC>01</urn:ZNREGTC></app:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "applyContractUpdateservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [TestMethod]
        public void LAupdateDispatchAddTest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<upd:in0 xmlns:upd=\"http://updateDispatchAdd.msp.csc\" xmlns:urn=\"urn:BeanService\"> <urn:BRANCH>NJ</urn:BRANCH> <urn:CHDRSEL>00013195</urn:CHDRSEL> <urn:CLTADDR01>TEST</urn:CLTADDR01> <urn:CLTADDR02>TWO</urn:CLTADDR02> <urn:CLTADDR03>THREE</urn:CLTADDR03> <urn:CLTADDR04>FOUR</urn:CLTADDR04> <urn:CLTADDR05>FIVE</urn:CLTADDR05> <urn:CLTPCODE>100888</urn:CLTPCODE> <urn:CNTBRANCH>NJ</urn:CNTBRANCH> <urn:COMMITFLAG>Y</urn:COMMITFLAG> <urn:COMPANY>2</urn:COMPANY> <urn:IGNOREDRIVERHELD>Y</urn:IGNOREDRIVERHELD> <urn:LANGUAGE>S</urn:LANGUAGE> <urn:OBJECTID>ADR</urn:OBJECTID> <urn:PASSWORD>123456</urn:PASSWORD> <urn:USRPRF>RZOU</urn:USRPRF> <urn:VERBID>UPD</urn:VERBID> <urn:XSUPPRESSRCLRSC>N</urn:XSUPPRESSRCLRSC></upd:in0>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "LA",
                    SrvOpName = "updateDispatchAddservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }

        [TestMethod]
        public void AURAMessageFromLATest()
        {
            XmlDocument xmldoc = new XmlDocument();
            xmldoc.LoadXml("<AURATX><AuraControl><UniqueID>400000000257_U</UniqueID><Company>mlc</Company><SetCode>16</SetCode><SubSet>2</SubSet><PostBackTo>review.jsp</PostBackTo><PostErrorsTo>review.jsp</PostErrorsTo><SaveExitPage>review.jsp</SaveExitPage></AuraControl><POLICY><ZNUWCAT>NB</ZNUWCAT><ZNEXTSYS>5</ZNEXTSYS><PRT1OPT /><PRT2OPT /><ZNGPCNO /><STATCODE>PS</STATCODE><CNTBRANCH>NJ</CNTBRANCH><TTMPRCNO>400000000257</TTMPRCNO><Chdrnum>00013458</Chdrnum><OCCDATE>20121123</OCCDATE><HPROPDTE>20121123</HPROPDTE><HPRRCVDT>20121123</HPRRCVDT><ZDDTEDIF /><PolicyOwner><OWNERSEL>60007330</OWNERSEL><SALUTL>MR/MRS</SALUTL><LSURNAME>张五六</LSURNAME><DOB>19770307</DOB><Age>35</Age><ZDDAYS /><CLTSEX>M</CLTSEX><MARRYD /><ZACLTADDR>333333</ZACLTADDR><CLTPCODE>333333</CLTPCODE><ADDRTYPE>1</ADDRTYPE><ZNBUSUT>324234</ZNBUSUT><CTRYCODE>01</CTRYCODE><NATLTY>01</NATLTY><CLRSKIND>1</CLRSKIND><RSKFLG>1</RSKFLG><IDNPRF>01</IDNPRF><SECUITYNO>110108197703070114</SECUITYNO><EXPDTE /><INCPRF /><INCDESC /><DECGRSAL>2000000</DECGRSAL><RMBLPHONE>33333333333</RMBLPHONE><CLTPHONE>33333333</CLTPHONE><RINTERNET>WER@15.COM</RINTERNET><OCCPCODE>A001</OCCPCODE><ZNPIDCPYID /></PolicyOwner><OWNRISKSILIST><ZNRSKCD /><SUMINS>.00</SUMINS></OWNRISKSILIST><BILLFREQ>01</BILLFREQ><ZNFPMOP>C</ZNFPMOP><MOP>C</MOP><ZDIVOPT /><ZNFOPT>02</ZNFOPT><CNTCURR>CNY</CNTCURR><BILLCURR>CNY</BILLCURR><REGISTER>01</REGISTER><SRCEBUS>3</SRCEBUS><DLVRMODE>01</DLVRMODE><ZAPSTADD>333333</ZAPSTADD><CLTPCODE03>333333</CLTPCODE03><ZNAGNTSEL>8609802649</ZNAGNTSEL><AGCOMRT>100.00</AGCOMRT><SubAgentList><ZNAGNTSEL01 /><SPLITC>.00</SPLITC></SubAgentList><ZNCSMNAME>8609000636</ZNCSMNAME><INSLST><Insured><Life>01</Life><INSRISKSILIST><ZNRSKCD02 /><SUMINS02>.00</SUMINS02></INSRISKSILIST><InsuredInfo><LIFCNUM>60007330</LIFCNUM><SALUTL02>MR/MRS</SALUTL02><LSURNAME02>张五六</LSURNAME02><DOB02>19770307</DOB02><Age02>35</Age02><ZDDays02 /><CLTSEX02>M</CLTSEX02><MARRYD02 /><ZACLTADDR02>333333</ZACLTADDR02><CLTPCODE02>333333</CLTPCODE02><ADDRTYPE02>1</ADDRTYPE02><ZNBUSUT02>324234</ZNBUSUT02><CTRYCODE02>01</CTRYCODE02><NATLTY02>01</NATLTY02><CLRSKIND02>1</CLRSKIND02><RSKFLG02>1</RSKFLG02><IDNPRF02>01</IDNPRF02><SECUITYNO02>110108197703070114</SECUITYNO02><EXPDTE02 /><INCPRF02 /><INCDESC02 /><DECGRSAL02>2000000</DECGRSAL02><RMBLPHONE02>33333333333</RMBLPHONE02><CLTPHONE02>33333333</CLTPHONE02><RINTERNET02>WER@15.COM</RINTERNET02><OCCPCODE02>A001</OCCPCODE02><ZNPIDCPYID02 /></InsuredInfo><RELATION>00</RELATION><SELECTION>NIL</SELECTION><HEIGHT>180</HEIGHT><WEIGHT>70</WEIGHT><SMOKING /><OCCUP>A001</OCCUP><Questionare><QUESTSET>MTQBA</QUESTSET><QuestionList><Question><QUESTIDF>A01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A02</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A03</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A04</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A05</QUESTIDF><ANSWER>180</ANSWER></Question><Question><QUESTIDF>A06</QUESTIDF><ANSWER>70</ANSWER></Question><Question><QUESTIDF>A07</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A08</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A09</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A10</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A11</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A12</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A13</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A14</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A15</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A16</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A17</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A18</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A19</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>A20</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>B01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>B02</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C02</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C03</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C04</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C07</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C08</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C09</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C10</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C11</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C12</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C13</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C14</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C15</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C16</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C17</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>C18</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>D01</QUESTIDF><ANSWER>N</ANSWER></Question><Question><QUESTIDF>D02</QUESTIDF><ANSWER>N</ANSWER></Question></QuestionList></Questionare><HUWDCDTE>99999999</HUWDCDTE><COVLST><COVINF><Coverage>01</Coverage><RIDER>00</RIDER><ZNPRDCODE>PED11BA</ZNPRDCODE><SUMIN>100000</SUMIN><RCESSAGE>0</RCESSAGE><RCESSTRM>20</RCESSTRM><PCESSAGE>0</PCESSAGE><PCESSTRM>10</PCESSTRM><BCESSAGE>0</BCESSAGE><BCESSTRM>0</BCESSTRM><MORTCLS>2</MORTCLS><INSTPRM>7880.00</INSTPRM><LMPCNT>.00</LMPCNT><ZPRFLG>N</ZPRFLG><ZNINVAMT /><ZNTRM /><ZUNIT /><LIVESNO>0</LIVESNO><PAYCLT>60007330</PAYCLT><PayBankInfor><BANKCODE /><BANKKEY /><BANKACCKEY /><BANKDESC /><BNKACTYP /><CURRCODE /><DATEFROM /><TIMESUSE /></PayBankInfor><FREQANN /><ADVANCE /><ARREARS /><GUARPERD /><WITHPROP /><WITHOPROP /><NOMLIFE /><DTHPERCN>.00</DTHPERCN><DTHPERCO>.00</DTHPERCO><Payment><PAYCLT02 /><CLTYPE /><RGPYMOP /><REGPAYFREQ /><PRCNT>.00</PRCNT><CLAIMCUR /></Payment><RSUNIN /><PRCAMTIND /><PRMFLST><VRTFND01>0</VRTFND01><UALPRC01>.00</UALPRC01><VRTFND02>0</VRTFND02><UALPRC02>.00</UALPRC02><VRTFND03>0</VRTFND03><UALPRC03>.00</UALPRC03><VRTFND04>0</VRTFND04><UALPRC04>.00</UALPRC04><VRTFND05>0</VRTFND05><UALPRC05>.00</UALPRC05><VRTFND06>0</VRTFND06><UALPRC06>.00</UALPRC06><VRTFND07>0</VRTFND07><UALPRC07>.00</UALPRC07><VRTFND08>0</VRTFND08><UALPRC08>.00</UALPRC08><VRTFND09>0</VRTFND09><UALPRC09>.00</UALPRC09><VRTFND10>0</VRTFND10><UALPRC10>.00</UALPRC10></PRMFLST><RGUFLST><ZAVRTFND01>0</ZAVRTFND01><ZNSPLAMT01>.00</ZNSPLAMT01><ZAVRTFND02>0</ZAVRTFND02><ZNSPLAMT02>.00</ZNSPLAMT02><ZAVRTFND03>0</ZAVRTFND03><ZNSPLAMT03>.00</ZNSPLAMT03><ZAVRTFND04>0</ZAVRTFND04><ZNSPLAMT04>.00</ZNSPLAMT04><ZAVRTFND05>0</ZAVRTFND05><ZNSPLAMT05>.00</ZNSPLAMT05><ZAVRTFND06>0</ZAVRTFND06><ZNSPLAMT06>.00</ZNSPLAMT06><ZAVRTFND07>0</ZAVRTFND07><ZNSPLAMT07>.00</ZNSPLAMT07><ZAVRTFND08>0</ZAVRTFND08><ZNSPLAMT08>.00</ZNSPLAMT08><ZAVRTFND09>0</ZAVRTFND09><ZNSPLAMT09>.00</ZNSPLAMT09><ZAVRTFND10>0</ZAVRTFND10><ZNSPLAMT10>.00</ZNSPLAMT10></RGUFLST><ZACOVBAK01 /><ZACOVBAK02 /><ZACOVBAK03 /><ZACOVBAK04 /><ZACOVBAK05 /></COVINF></COVLST></Insured></INSLST><BeneficiaryList><Beneficiary><BNYTYPE>01</BNYTYPE><BNYSEL>60007330</BNYSEL><SALUTL04>MR/MRS</SALUTL04><LSURNAME04>张五六</LSURNAME04><DOB04>19770307</DOB04><CLTSEX04>M</CLTSEX04><MARRYD04 /><ZACLTADDR04>333333</ZACLTADDR04><ADDRTYPE04>1</ADDRTYPE04><ZNBUSUT04>324234</ZNBUSUT04><CTRYCODE04>01</CTRYCODE04><NATLTY04>01</NATLTY04><IDNPRF04>01</IDNPRF04><SECUITYNO04>110108197703070114</SECUITYNO04><EXPDTE04 /><ZNPIDCPYID04 /><CLTRELN02>00</CLTRELN02><BNYPC>100.00</BNYPC><ZBNYTLVL>1</ZBNYTLVL><EFFDATE>20121123</EFFDATE><ZDCLMPLN>Y</ZDCLMPLN></Beneficiary></BeneficiaryList><FRTRecBank><BANKKEY02 /><BANKACCKEY02 /><BANKDESC02 /><BNKACTYP02 /><CURRCODE02 /><DATEFROM01 /><DATETO /></FRTRecBank><SEQRecBank><BANKKEY03 /><BANKACCKEY03 /><BANKDESC03 /><BNKACTYP03 /><CURRCODE03 /><DATEFROM02 /><DATETO02 /></SEQRecBank><TRANDATEX /><BANKCODER /><TCHQDATE /><BANKDESC01R /><BANKDESC03R /><RFCODE /><RFNUM /><PAYTYPE /><DOCORIGAMT>.00</DOCORIGAMT><ZNOVRPAYOP /><PackageInfo><ZNPKGCODE /><TOTPRE>.00</TOTPRE><ZTOTSI /></PackageInfo><GeneralRemark><ALINE01 /><ALINE02 /></GeneralRemark><SACSCODE /><SACSTYPE /><CAMPAIGN /><ZNPRJTCD /><ZNEPOLFLG /><ZNBNKODR /><ZNDISPER>1.00</ZNDISPER><ZNSPCTYP /><ZNBILLNO /><ZNINVBNK /><ZNVIPIND /><ZAPOLFLD1 /><ZAPOLFLD2 /><ZAPOLFLD3 /><ZAPOLFLD4 /><ZAPOLFLD5 /></POLICY><HisIn><POLHIS><PolicyOwner><OWNERSEL05>60007330</OWNERSEL05><LSURNAME05>张五六</LSURNAME05><DOB05 /><CLTSEX05>M</CLTSEX05><SECUITYNO05 /><RMBLPHONE05>33333333333</RMBLPHONE05><CLTPHONE05>33333333</CLTPHONE05></PolicyOwner><InsuredList><Insured><LIFCNUM06>60007330</LIFCNUM06><LSURNAME06>张五六</LSURNAME06><DOB06>19770307</DOB06><CLTSEX06>M</CLTSEX06><SECUITYNO06 /><RMBLPHONE06>33333333333</RMBLPHONE06><CLTPHONE06>33333333</CLTPHONE06></Insured></InsuredList><BeneficiaryList><Beneficiary><LSURNAME07>张五六</LSURNAME07><BNYSEL07>60007330</BNYSEL07><DOB07>19770307</DOB07><CLTSEX07>M</CLTSEX07><SECUITYNO07 /></Beneficiary></BeneficiaryList><PolicyInfo><CNTBRANCH02>NJ</CNTBRANCH02><TTMPRCNO02>400000000257</TTMPRCNO02><CHDRNUM02>00013458</CHDRNUM02><ZNAGNTSEL02>8609802649</ZNAGNTSEL02><CHDRTYPE /><ZNCSMNAME02>8609000636</ZNCSMNAME02><HPROPDTE02>20121123</HPROPDTE02><LIFE02>01</LIFE02><COVLIST><Coverage02>01</Coverage02><RIDER02>00</RIDER02><ZNPRDCODE02>PED11BA</ZNPRDCODE02><RCESSAGE02 /><RCESSTRM02>20</RCESSTRM02></COVLIST></PolicyInfo></POLHIS></HisIn></AURATX>");

            ESBEnvelope envelope = new ESBEnvelope()
            {
                ESBHeader = new ESBEnvelopeESBHeader()
                {
                    ReceiverID = "AURA",
                    SrvOpName = "updateDispaValidationPolicytchAddservice",
                    SenderID = "Dox"
                },
                MsgBody = (XmlElement)xmldoc.FirstChild,
            };
            Assert.AreEqual(new ESBWebEntrySoapClient().ProcessMessage(envelope).ESBHeader.ESBRspCode, "0");
        }
    }
}
